﻿<UserControl x:Class="Haushaltsbuch.Views.Options.ChangePasswordView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:ff="clr-namespace:Haushaltsbuch.Helpers;assembly=Haushaltsbuch.Helpers"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid VerticalAlignment="Top">
            <Grid.RowDefinitions>
                <RowDefinition Height="*" />
                <RowDefinition Height="*" />
                <RowDefinition Height="*" />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        
        <Label Content="Neues Passwort" />
        <PasswordBox x:Name="Password1" Grid.Column="1"  ff:PasswordBoxAssistant.BindPassword="true"  ff:PasswordBoxAssistant.BoundPassword="{Binding Path=Password1, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"  />
        <Label Content="Wiederholung Passwort" Grid.Row="1"/>
        <PasswordBox x:Name="Password2"  Grid.Column="1" Grid.Row="1" ff:PasswordBoxAssistant.BindPassword="true"  ff:PasswordBoxAssistant.BoundPassword="{Binding Path=Password2, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
        <Button Name="Ok" Content="OK" Grid.Column="0" Grid.Row="2"/>
        <Button Name="Cancel" Content="Cancel" Grid.Column="1" Grid.Row="2"/>
    </Grid>
</UserControl>
